/**
 * 控件的描述信息
 */
export class WidgetType {
  name: string
  router: string

  constructor(name: string, router: string) {
    this.name = name
    this.router = router
  }
}

export namespace displayInfo {
  /**
   * 状态栏高度
   */
  export let statusBar: number = 100
}

export namespace constant {
  /**
   * ArkTs总结
   */
  export const knowledgeList: Array<WidgetType> = [
    new WidgetType("应用程序基础", "pages/widgetSample/ApplicationSample"),
    new WidgetType("资源分类与访问", ""),
    new WidgetType("方舟字节码", ""),
    new WidgetType("ArkTS高性能编程", ""),
    new WidgetType("状态管理", "pages/widgetSample/StateManagementSample"),
    new WidgetType("UI装饰器", ""),
    new WidgetType("渲染控制", ""),
    new WidgetType("性能优化", ""),
    new WidgetType("稳定性", ""),
  ]

  /**
   * 控件类型集合
   */
  export const widgetTypeList: Array<WidgetType> = [
    new WidgetType("文本组件", "pages/widgetSample/TextSample"),
    new WidgetType("按钮组件", "pages/widgetSample/ButtonSample"),
    new WidgetType("图片组件", "pages/widgetSample/ImageSample"),
    new WidgetType("输入框组件", "pages/widgetSample/TextInputSample"),
    new WidgetType("进度条组件", "pages/widgetSample/ProgressSample"),
    new WidgetType("选择器组件", "pages/widgetSample/PickerSample"),
    new WidgetType("二维码组件", "pages/widgetSample/QrCodeSample"),
    new WidgetType("开关组件", "pages/widgetSample/ToggleSample"),
    new WidgetType("提示框组件", "pages/widgetSample/DialogSample"),
    new WidgetType("滑动条组件", "pages/widgetSample/SliderSample"),
    new WidgetType("评分条组件", "pages/widgetSample/RatingSample"),
    new WidgetType("Flex", "pages/widgetSample/FlexSample"),
    new WidgetType("SideBarContainer", "pages/widgetSample/SideBarContainerSample"),
    new WidgetType("Badge", "pages/widgetSample/BadgeSample"),
    new WidgetType("Counter", "pages/widgetSample/CounterSample"),
    new WidgetType("Scroll、Scroller", "pages/widgetSample/ScrollerSample"),
    new WidgetType("Swiper", "pages/widgetSample/SwiperSample"),
    new WidgetType("Menu", "pages/widgetSample/MenuSample"),
    new WidgetType("跑马灯(Marquee)", "pages/widgetSample/MarqueeSample"),
    new WidgetType("地图", "pages/widgetSample/MapSample"),
    new WidgetType("组件跳转", "pages/widgetSample/ModularizationSample"),
    new WidgetType("下拉刷新", "pages/widgetSample/PullToRefreshSample"),
    new WidgetType("Refresh", ""),
    new WidgetType("手势密码", ""),
    new WidgetType("窗口模块", ""),
    new WidgetType("数据持久化", ""),
    new WidgetType("通知", ""),
  ]
}
